//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using OpenLS.Core.Serialization;
using OpenLS.Vml.Serialization;

namespace OpenLS.Vml.Drawing
{
    class Complex: ShapeElement
    {
        private Ext? _ext;

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("complex"))
            {
                _ext = c.GetOptionalEnum<Ext>(VmlConstants.VmlNamespace+ "ext");
            }

        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (var c = context.Write("complex"))
            {
                c.SetOptionalEnum<Ext>(VmlConstants.VmlNamespace+ "ext", _ext);
            }
        }
    }
}
